package String2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-10
 * Time: 17:48
 */
public class demo6 {
    public static void main(String[] args) {
        String str1 = "name=zhansgan&age=5";
        String[] ret = str1.split("=|&");
        for (String x : ret) {
            System.out.println(x);
        }
    }
}
